<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->

<title>is_linetouched</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<xref type="10" name="manpage_touch"></xref>
<h4><a name = "tag_002_001_658">&nbsp;</a>NAME</h4><blockquote>
is_linetouched, is_wintouched, touchline, touchwin, untouchwin, wtouchln
- window refresh control functions
</blockquote><h4><a name = "tag_002_001_659">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;<a href="curses.h.html">curses.h</a>&gt;

bool is_linetouched(WINDOW *<i>win</i>, int <i>line</i>);

bool is_wintouched(WINDOW *<i>win</i>);

int touchline(WINDOW *<i>win</i>, int <i>start</i>, int <i>count</i>);

int touchwin(WINDOW *<i>win</i>);

int untouchwin(WINDOW *<i>win</i>);

int wtouchln(WINDOW *<i>win</i>, int <i>y</i>, int <i>n</i>, int <i>changed</i>);
</code>
</pre>
</blockquote><h4><a name = "tag_002_001_660">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>touchwin()</i>
function touches the specified window (that is, marks it as having changed
more recently than the last refresh operation).
&nbsp;The
<i><a href="touchline.html">touchline()</a></i>
function only touches <i>count</i> lines, beginning with line <i>start</i>.
<p>
The
<i><a href="untouchwin.html">untouchwin()</a></i>
function marks all lines in the window as unchanged since the last refresh
operation.
<p>
Calling
<i>wtouchln()</i>,
if <i>changed</i> is 1, touches <i>n</i> lines in the specified window, starting
at line <i>y</i>.  If <i>changed</i> is 0,
<i>wtouchln()</i>
marks such lines as unchanged since the last refresh operation.
<p>
The
<i>is_wintouched()</i>
function determines whether the specified window is touched.  The
<i>is_linetouched()</i>
function determines whether line
<i>line</i>
of the specified window is touched.
</blockquote><h4><a name = "tag_002_001_661">&nbsp;</a>RETURN VALUE</h4><blockquote>
The
<i>is_linetouched()</i>
and
<i>is_wintouched()</i>
functions return TRUE if any of the specified lines, or the specified window,
respectively, has been touched since the last refresh operation.  Otherwise,
they return FALSE.
<p>
Upon successful completion, the other functions return OK.  Otherwise, they
return ERR.
Exceptions to this are noted in the preceding function
descriptions.
</blockquote><h4><a name = "tag_002_001_662">&nbsp;</a>ERRORS</h4><blockquote>
No errors are defined.
</blockquote><h4><a name = "tag_002_001_663">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
Calling
<i>touchwin()</i>
or
<i><a href="touchline.html">touchline()</a></i>
is sometimes necessary when using overlapping windows, since a change to one
window affects the other window, but the records of which lines have been
changed in the other window do not reflect the change.
</blockquote><h4><a name = "tag_002_001_664">&nbsp;</a>SEE ALSO</h4><blockquote>
<xref href=concepts><a href="intov.html#tag_001_002">
Screens, Windows and Terminals
</a></xref>,
<i><a href="doupdate.html">doupdate()</a></i>,
<i><a href="curses.h.html">&lt;curses.h&gt;</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
